package cn.appsys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.appsys.dao.AppVersionMapper;
import cn.appsys.pojo.AppVersion;
import cn.appsys.service.AppVersionService;

@Service("appVersionService")
public class AppVersionServiceImpl implements AppVersionService {

	@Autowired
	@Qualifier("appVersionMapper")
	AppVersionMapper appVersionMapper;

	@Override
	public List<AppVersion> getAppVersionList(Integer id) {
		return appVersionMapper.getAppVersionList(id);
	}

	@Override
	public int addVersion(AppVersion appVersion) {
		return appVersionMapper.addVersion(appVersion);
	}

	@Override
	public AppVersion getAppVersionById(Integer id) {
		return appVersionMapper.getAppVersionById(id);
	}

	@Override
	public int modify(AppVersion appVersion) {
		return appVersionMapper.modify(appVersion);
	}

	@Override
	public int deleteApkFile(Integer id) {
		return appVersionMapper.deleteApkFile(id);
	}
}
